PEAR state of play, why move to PEAR2
Published 2009-09-21 14:16:30
Just before I saw Brendan's post about PHP4 compatibility in PEAR, I had been getting a few queries about making a couple of my PEAR packages more 'PHP5' compatible or PEAR2 ready.
From my perspective, pretty much all of the packages I maintain (As far as I know) are PHP5 'compatible'. however they may emit E_STRICT errors.
This brings up the interesting question, which I guess all the current maintainers, users and contributors have come across, how much value is added to the existing packages by adding that level of support.
From an 'ideal world' / 'perfect coding' perspective, they would benefit from this changes. but as somebody who earns an income by delivering projects as quickly and efficiently as possible, the return on investment for making those changes is very tiny, if not negative.
Since the packages generally just work, making the changes required, would not really change that 'just work' situation, and as Jamie Zawinski famously said "How will this software get him laid?"
Two of the biggest changes I'm aware of for this 'PHP5 compatibility' issue are the 'static' method prefix and getting rid of 'var' which completely break PHP4 compatibility (and yes we still maintain PHP4 applications, and clients rarely have budget to make changes like this). Doing these changes would mean that I would have to either freeze or depreciate PHP4 support, or start maintaining dual versions. (Personally I would prefer a hook in the package builder that would do the replacement for me, so I could upload 2 package on each release).
Going forward, PEAR2 is still in a gestation period, (as PHP5.3 and namespaces support has just come out.) Resulting in any code that had targeted PHP5.3/PEAR2 aging very quickly (eg. requiring changes to handle the final changes to the namespace syntax.). This may start changing soon, however I suspect it would really take some significant effort in time to start creating PEAR2 packages for existing code (which has a rather poor return on investment) . And without a reasonable base number of packages, the attraction of submitting code to PEAR2 is lessened. A classic chicken and egg situation.
At the same time, there is no real alternative to PEAR2, pretty much all other 'framework' solutions have been built around the assumption that you have to accept a majority of the 'framework' to utilize the single packages. Which is even worse that the pains that PEAR(1) imposes on you.
All that said, if you want to send me patches to fix any big PHP5 issues in my packages please don't hesitate, I will try and make the changes.
From my perspective, pretty much all of the packages I maintain (As far as I know) are PHP5 'compatible'. however they may emit E_STRICT errors.
This brings up the interesting question, which I guess all the current maintainers, users and contributors have come across, how much value is added to the existing packages by adding that level of support.
From an 'ideal world' / 'perfect coding' perspective, they would benefit from this changes. but as somebody who earns an income by delivering projects as quickly and efficiently as possible, the return on investment for making those changes is very tiny, if not negative.
Since the packages generally just work, making the changes required, would not really change that 'just work' situation, and as Jamie Zawinski famously said "How will this software get him laid?"
Two of the biggest changes I'm aware of for this 'PHP5 compatibility' issue are the 'static' method prefix and getting rid of 'var' which completely break PHP4 compatibility (and yes we still maintain PHP4 applications, and clients rarely have budget to make changes like this). Doing these changes would mean that I would have to either freeze or depreciate PHP4 support, or start maintaining dual versions. (Personally I would prefer a hook in the package builder that would do the replacement for me, so I could upload 2 package on each release).
Going forward, PEAR2 is still in a gestation period, (as PHP5.3 and namespaces support has just come out.) Resulting in any code that had targeted PHP5.3/PEAR2 aging very quickly (eg. requiring changes to handle the final changes to the namespace syntax.). This may start changing soon, however I suspect it would really take some significant effort in time to start creating PEAR2 packages for existing code (which has a rather poor return on investment) . And without a reasonable base number of packages, the attraction of submitting code to PEAR2 is lessened. A classic chicken and egg situation.
At the same time, there is no real alternative to PEAR2, pretty much all other 'framework' solutions have been built around the assumption that you have to accept a majority of the 'framework' to utilize the single packages. Which is even worse that the pains that PEAR(1) imposes on you.
All that said, if you want to send me patches to fix any big PHP5 issues in my packages please don't hesitate, I will try and make the changes.
Mentioned By:
google.com : gg.blogpear.com (99 referals)
phpcamp.net : PHPCamp - Toolbar-PEAR state of play, why move to PEAR2 (97 referals)
google.com : Gg.blogpear (48 referals)
www.planet-php.net : Planet PHP (39 referals)
google.com : Gg Blog Pear (38 referals)
google.com : gg blogpear (32 referals)
google.com : PEAR2 (31 referals)
google.com : http://gg.blogpear.com (24 referals)
google.com : blogpear.com (21 referals)
google.com : http://gg.blogpear.com/vscript (17 referals)
google.com : http://gg.blogpear.com/vscript/ (17 referals)
azby.search.nifty.com : gg.blogpear.com のウェブ検索結果 - AzbyClub : 富士通 (14 referals)
google.com : how to remove gg.blogpear.com (12 referals)
google.com : state of play (12 referals)
google.com : how to remove http://gg.blogpear.com/vscript/ (10 referals)
google.com : ggblogpear.com (9 referals)
google.com : gg.blogpear.com remover (4 referals)
google.com : PEAR PHP5 issue (4 referals)
google.com : gg.blogpear.com/ (3 referals)
google.com : http://gg.blogpear.com/vscript/new (3 referals)
google.com : gg.blogpear.com (99 referals)
phpcamp.net : PHPCamp - Toolbar-PEAR state of play, why move to PEAR2 (97 referals)
google.com : Gg.blogpear (48 referals)
www.planet-php.net : Planet PHP (39 referals)
google.com : Gg Blog Pear (38 referals)
google.com : gg blogpear (32 referals)
google.com : PEAR2 (31 referals)
google.com : http://gg.blogpear.com (24 referals)
google.com : blogpear.com (21 referals)
google.com : http://gg.blogpear.com/vscript (17 referals)
google.com : http://gg.blogpear.com/vscript/ (17 referals)
azby.search.nifty.com : gg.blogpear.com のウェブ検索結果 - AzbyClub : 富士通 (14 referals)
google.com : how to remove gg.blogpear.com (12 referals)
google.com : state of play (12 referals)
google.com : how to remove http://gg.blogpear.com/vscript/ (10 referals)
google.com : ggblogpear.com (9 referals)
google.com : gg.blogpear.com remover (4 referals)
google.com : PEAR PHP5 issue (4 referals)
google.com : gg.blogpear.com/ (3 referals)
google.com : http://gg.blogpear.com/vscript/new (3 referals)
Follow us
-
- Some thoughts on the language server and its usefulness in the roobuilder
- Roo Builder for Gtk4 moving forward
- Clustered Web Applications - Mysql and File replication
- GitLive - Branching - Merging
- PDO_DataObject Released
- PDO_DataObject is under way
- Mass email Marketing and anti-spam - some of the how-to..
- Hydra - Recruitment done right
Blog Latest
-
Twitter - @Roojs